﻿@foreach (var menuItem in ViewBag.MainMenu)
{
    <div id="sidebar" name="@menuItem.Key" style="@(ViewBag.Menu.Equals(menuItem.Key) ? "display:block" : "display:none")">
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="box-style3">
            <tr>
                <td>
                    <h2>
                        @menuItem.SubMenuTitle</h2>
                </td>
            </tr>
            <tr>
                <td>
                    <ul>
                        @foreach (var child in menuItem.Childs)
                        {
                            <li><a href="@child.Url">@child.Name</a></li>
                        }
                    </ul>
                </td>
            </tr>
        </table>
    </div>
} 